package cn.dsscm.service;

import cn.dsscm.dao.FoodMapper;
import cn.dsscm.dao.UserMapper;
import cn.dsscm.pojo.Food;
import cn.dsscm.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class FoodServiceImpl implements FoodService{
    @Resource
    private FoodMapper foodMapper;


    @Override
    public List<Food> findAll() {
        return foodMapper.findAll();
    }

    @Override
    public Food findById(int id) {
        return foodMapper.findById(id);
    }


}

